Remove an unnecessary element from the layout