LabelPipe and IdPipe, refactoring