cypher: Refactors LabelSpec to not leak outside the parser