Cleaned up Wrangler._write_view_inventory().