Decoupling router from server.