Refactoring isRotation