Get rid of unneeded views.