[No review required] Make HTTP penalty recording mockable