METRICS-3212: Move TCP integration aspects to separate package