Refactoring in rotation_spec.