That is currently being worked on with a planned release for AOS 8.2 (sorry, it's taking a lot longer to develop). So right now it would be more or less a manual re-build unless you can dig up a spare local controller. If you can, and you are plannong on using an MM, you could hang the spare local off your existing master, stand up your MM, then migrate the local using the master (but not actually migrating the master itself), so that you would have an MM and MD migrated from your existing deployment with no downtime.
The catch is you need the VMM and a spare local.