Deleting unnecessary class representing unnecessary node in the tree