Refactor delete-item to be shared between item and taxonomy.