Moved validator factory to model property.