Completed refactoring of RegulatedMotor