Statistical analysis of galaxy surveys – IV. An objective way to quantify the impact of superstructures on galaxy clustering statistics