Migrate local declarations