Refactored Link header extraction.