Factor "paginateReports" out of getAllReports/getSearchedReports.