Move createView’s rotationView into API