Dependency inversion on Badge.rb