Heterogeneities in systems with quenched disorder