Simplify ghc-boot database representation with new type class.