Refactor PageInfo.