patch applied (cabal): Refactor: move UserHooks into it's own module