rustc_resolve: Move ReducedGraphParent building into its own module

This also gets rid of a bunch of unnecessary `.clone`s.

cc @eddyb