refactor badgeInfoService