Turn root classes into structs