Move the network client implementation to a non-Heinz-specific class

And make the Heinz client inherit from it.