the default `.upsert` method would clobber the `id`
registry_item
we remove all duplicate items from the registry, keeping the most-recently updated one (which presumably is the one that the users expect to be used) then we use `upsert` instead of the more complicated previous logic, which was subject to races
Fix #13290
This reverts commit 9b5aeb76d8.
9b5aeb76d8
* wip * wip * Update remove.ts * refactor