Refactor httpTracker_ and udpTracker_ into structs under a common interface