extract some common functionality to ShopifyClient::Base