Refactored rate limiting by turning RateLimiter into an action filter.