Remove unnecessary labels