item instanceof AbstractLibraryItemEntity ? $cmd->item : $this->repo->ofId($cmd->item); $this->repo->remove($item); } }