refactor sensorimotor system