Refactoring MotorPart.ino