Refactor code that sends messages to pragbot_client into
pragbotMotionController.