Move pagination methods to global space