Update insert_table to use remove_type