private function exportToMultiple(array $configurations, array $overrideData)
    {
        // Create export directory if it doesn't exist.
        if (!file_exists($this->path)) {
            mkdir($this->path, 2775, true);
        }

        foreach ($configurations as $dataTypeHandle => $configuration) {
            Schematic::info('Exporting '.$dataTypeHandle);
            foreach ($configuration as $recordName => $records) {
                // Check if there is data in the override file for the current record.
                if (isset($overrideData[$dataTypeHandle][$recordName])) {
                    $records = array_replace_recursive($records, $overrideData[$dataTypeHandle][$recordName]);
                }

                // Export records to file.
                $fileName = $this->toSafeFileName($dataTypeHandle.'.'.$recordName.'.yml');
                FileHelper::writeToFile($this->path.$fileName, Data::toYaml($records));
                Schematic::info('Exported '.$recordName.' to '.$fileName);
            }
        }
    }