Implement sub-grouping feature for rotate and scale operations