[Git][ghc/ghc][wip/andreask/ticked_joins] 2 commits: WIP: refactoring