Migrate config to new config classes.