When you select for placement (if possible, when you hover over a factory item, but it might not be possible) a factory, display in a GUI window information. ID and Name, specifically. Stays even if you deselect, unless you chose a new factory or place the selected factory.
Add a tool (wrenchfoo) which lets you open up an interface for a placed factory.
Lets you change the name, and see the ID, same as before.
Also, lets you disassembler a factory. Picks up each item in the factory to your inventory, stops if you run out of room. Ignores recursive, so internal factories remain as normal.
If you copy-paste (like for assemblers) then it tries to build and disassemble as much as it can to make the target match the original. This takes stuff from your inventory, or adds it, same as before. No free resources or resource loss.
This might instead be better done through the interface, not sure.