zmq: hoisting tag parsing into helper function, should now be easy to use in other zmq blocks