Refactor common message decoding instructions.