Reduce the duplication of code that invokes the rate limiter.