Refactor getAllLimits API method