Chore: Refactor quota service (#57586) * Chore: refactore quota service * Apply suggestions from code review