Clean up before migration