Moves motor management into a separate module.