transactions->run(function () use ($customerId, $contactId): void { $contact = $this->contacts->findForCustomer($customerId, $contactId) ?? throw new ContactNotFound($customerId, $contactId); $this->contacts->delete($contact); }); } }