[Git][ghc/ghc][wip/unit-index] Abstract out parts of mkUnitState into a handler type