Replace WireDesc definitions with abstract Codec class.