Extract out RetryPolicy from Paginator so that it can be used elsewhere.