extract a method in FieldEnumParser