Replace usages of deprecated AssertLegacyTrait::assert(No)Option()