Removing deprected dom elements.