Scripts to automatically covert node from one SolarWinds environment to a new SW environment

I was wondering if anyone has created some base script (or SQL) to move nodes from one SW environment to another. I need to be able to do this by groups based on a custom field.

I can then create a  translation table for custom fields to different custom fields based on a custom group to incorporate into the script. I am not concerned about keeping historical data, but could be an added plus.

I have about 10,000 nodes or more that I need to do this to otherwise I would simply drop and re-add the node to a new environment.  I know I can add/discover by subnet, but not all nodes in the subnet have the same items in the custom fields.