protected function extractContract($contact)
    {
        foreach ($contact->documents as $document) {
            if ($document->type === 'contract') {
                $document->scenario = $this->scenario;

                return $document;
            }
        }

        return null;
    }