Move message type parity logic to the wire module