Extract duplicated retry-after header parsing.