Move functions in pages module to PageUtils class.