Fixed #22351 -- Removed usage of lambdas in model field options.

Thanks claudep for review.