Cleanup deprecated IMU code by using a union.