Polyketide synthase (PKS) reduces fusion of Legionella pneumophila-containing vacuoles with lysosomes and contributes to bacterial competitiveness during infection.