Remove non-bare-bones elements