Refactor rate limiter bookkeeping around connection start.
Remove unused test helper.