Migrate template selection in existing blocks.