Moved migration into separate processes