Create a function that gives you the server and the task runner based on the instance id, thus separating this routing logic from actually sending the message.