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