Refactor validations into appropriate classes.