You can use a mechanism to combine kinematic sub-elements into a single one, so it can be programmed as a single entity.