Removes the pyruvyl group from chorismate to provide 4-hydroxybenzoate (4HB). Involved in the synthesis of glycosylated p-hydroxybenzoic acid methyl esters (p-HBADs) and phenolic glycolipids (PGL) that play important roles in the pathogenesis of mycobacterial infections (By similarity). chorismate = 4-hydroxybenzoate + pyruvate Belongs to the chorismate pyruvate-lyase type 2 family.