The function makes it easier to deal with the delayed query routing as well as removing redundancy in the code.