I was wondering if there (if possible) can be a generic paginate function that takes a query, data, consistency, limit, marker and returns the retrieved data. This can be used whenever we are paginating data.