Split GPG interface into its own helper library