DRY in helper.rb