Move setup of server and router to its own service provider.