Promote nested element types to top-level.