Move SplPriorityQueue conversion code to renderer