Foolish duplication of logic meant that we didn't go recursive or generate stubs for the root element.