Move some more code out of CodegenBackend::{codegen_crate,link} Kind of a follow up to #77795
rustc_ty
rustc_ty_utils