Remove DOM dependency