Extracting common map storage mechanism for TextHeaders and
BinaryHeaders into HeaderMap class.