Refactor slide and spin motion mixins to have more consistent structure
Convert hinge motion mixin to new format