Refactoring of Polyakov

Refactor the transport mechanism, simplify packaging and transporting of metrics.