Move Codec.decodeBoth to DecoderFunctions