Extract SetPaginator method.