Extract case statements on validations module to a private method