refactor lib/conformity.rb