The endoplasmic reticulum is a hub to sort proteins toward unconventional traffic pathways and endosymbiotic organelles