Refactor page representer