Refactoring of PageRank