Add code for migrating existing configs