If its a Zwave device, you can do the edit the DNI trick. This guide explains it, it is intended for a full migration but you can use it for a single device. Migrating a Z-Wave Network
The important part would be, take the old device entry, rename the DNI add something to it like _OLD
Then exclude or factory reset the device whatever you need to do. An exclusion should not take the renamed device with it because it is not attached to that node anymore (you can verify that in the z-wave details list, no device should be listed).
Pair the device again, make note of the new DNI.
Rename new device DNI to something like adding _DEL to it.
Rename the OLD device to the new DNI.
Now the old device entry it attached to the new node.
You can then force delete the "new" device entry from the hub devices list (not from z-wave details).