Refactoring AttributeConfigurationValidator: Replace conditiona with polymorphism