This should improve performance, clean up the code, and help pave the way for #83035.
GenericParamDef::get_type
&clean::Crate