Abstracting FieldAllowedValuesValidator.java into Field.java