Adds logic to build routing keys for payload