[like]refactor message header reader from code review