Hoisted _replace_in_file() to Controller.

All managers and wranglers now have access to the method.