Outsource merge-data-cube--functionality to an independent class