[GHC] #16021: Hadrian: remove/refactor package specific hacks