Refactor xhprof.