Extract method on metadata extraction from response headers.
Previously, this was defined at the wrong level of abstraction.