In Craft 2.x you have the option of setting the top-level entries URL format for a structure section separately from nested entries i.e. top-level/{slug}
and {parent.uri}/{slug}
But in Craft 3 the same URL format is applied for all entries within the structure section.
This means if you use top-level/{parent.uri}/{slug}
it works fine for a top-level entry but then nested entries have the first segment duplicated, e.g. top-level/top-level/some-parent/the-slug. How does one achieve the same level of URL formatting for structure entries in Craft 3?