Remove unnecessary labels.