protected function prepareTypeServiceConfigs($serviceConfig, $typeConfig, $type)
    {
        return array_merge(
            $serviceConfig,
            $typeConfig['config'],
            [
                'entity_class' => $typeConfig['entity_class'],
                'document_class' => $typeConfig['document_class'],
                'document_type' => $type,
            ]
        );
    }