Refactored the Validator class to achieve the object calisthenics rules