This commit only moves apply_transfers prior to its first usage.
This commit only moves router_route after router_round.