rework routing key generation into two methods one for the queue and one for the graph