Refactoring method duplication on validations module