Move the spin operation at the end of transformation