refactor PageScopeMethods

Turns out that these methods are called only once. Remove and just inline them.