ratecontrol: Reorder functions to avoid forward declarations