How to edit entities autodiscovered via mqtt?

I have a bunch of entities autodiscovered via mqtt.
They are some devices conneted via zigbee2mqtt.

Now I need to create a new zigbee2mqtt instance and move those devices to the new z2m.

So that, if now they rely on /zigbee2mqtt/id/ topic, tomorrow they should use /zigbee2mqttSecondInstance/sameId/ topic.

If I could change that, I can avoid some pain to re-edit some part of my HA (customization, and so on) because HA will actually think those devices are the same.

I cannot find any reference to their mqtt topic neither in the yaml files or in the database… am I missing something?