Make the ParityBitsCodec more flexible