Refactor Header Decoding in Separate Method.