Refactor in LabelAnalyzer