Refactor out packetizing graph for external use