Sets the router instead of calling parent's constructor.