[Core] Refactoring Gamification Logic