refactor badge.rb