Factor out HERMIT GHC flags into common module.