Move acceleration splitting for accelerometer and gravity into its own methods