You know what?
I was just creating a new field group and realized you don’t need to build any of this. There is already a “Page Type” selection with “Top Level/Parent/Child” choices.
Don’t ask me what I was thinking, but I assumed that since you were asking about this that it did not already exist.