Move validation managing functionality into separate class. Create Validator for type checks.