This unifies our code for determining which part of the scoped label is the scope and which part is the name