Towards a more modular ZMQ layer code