Migrate legacy data