Get rid of the nesting structure