Factored out common code from arm/leg deform rig type.