Refactor code for Label and LabelSet

- Refactor code for Label and LabelSet.