Don't duplicate code to construct the queue key.