Restructure migration generator