Create a function that prepares a structure for migration