Pagination method factorization