Refactoring ViewController to DeviceMotionViewController.