Refactoring InnFormatValidator due to codeclimate