Refactor common retry for eventual consistency usage