Move initRouter before other inits.