refactored use-case update_user_badges