Revert: common fn for rate limiting

Let's try it another time.