Refactor dead code in UpdateQueue.