Rebuild the way modals are constructed to support nesting.