[Git][ghc/ghc][wip/torsten.schmits/worker-gbc] Split `getLinkDeps` and abstract over the interface