Migrate types and class_types