G'day,
I've read through this document from STMicroelectronics, regarding the calculation and application of compensation values/matrices to pre- or post-fused accelerometer/gyroscope data to account for incorrect module installation (with respect to the desired reference orientation).