Remove

Refactor of the removing of DOM nodes.