Refactoring of diffraction calibration views