Code cleanup for rateLimit functions.