Simplify element hieharchy.