Remove nested AmqpEncoder in write_table and write_message_properties.