transactions->run(function () use ($actorUserId): int { if ($this->exports->openDraftId() !== null) { throw new DraftAlreadyOpen; } return (int) $this->exports->save(BillingExport::startDraft($actorUserId, $this->clock->now()))->id(); }); } }