Cleanup paginated querying.