Prepare to refactor router helpers.