Factorize tuple remap.