def _cleanUpAllPullRequests(results, all_pull_requests):
    """
    Helper function for _getAllPullRequests(). Clean up pull requests and strip out cursor info.

    GIVEN:
      results (dict) -- initial query response with metadata
      all_pull_requests (list) -- nested list of pull_requests with comments and metadata

    RETURN:
      results (dict) -- cleaned up results
    """
    results["data"]["repository"]["pullRequests"]["edges"] = all_pull_requests
    results["data"]["repository"]["pullRequests"].pop("pageInfo")
    return results