Extract method refactoring on some validations