Refactoring recipes retry policy.