protected function add_context_metadata(\core_analytics\local\time_splitting\base $timesplitting, array &$dataset,
            \core_analytics\local\target\base $target) {
        $headers = $this->get_headers($timesplitting, $target);

        // This will also reset samples' dataset keys.
        array_unshift($dataset, $headers);
    }