A suitable flat-field spectrum and arc spectrum should previously have been reduced and filed with the calibration system.
Variances are propagated.
A datacube is formed of each subtracted pair and an image is extracted to allow you to confirm that your target is suitably located on the field, but no coadded datacube is formed.
ORAC-DR -- integral field spectroscopy data reduction