Replace default_class with Type.