Split metadata and headers