[Git][ghc/ghc][wip/T23109] 75 commits: Refactor mkTopLevImportedEnv out of mkTopLevEnv