Refactoring validations.