Replace usages of AssertLegacyTrait::assert(No)FieldByName, that is deprecated