Refactoring out client stuff into its own package json-patch-api-client