Merge transforms of transforms into a single transform