Update rotation control to modern API.