Refactor tag name split logic into QualifiedName::split()