Move compass motion and pubsub instantiation to router