- code refactoring BadgeController (make it testable) [skip ui]