Moving magnetometer calibration code to dedicated directory