Extract _parseApiHeaders() method
Extract _parseBearerReply method