Refactor Patomic to use PatomicCurl methods