Removes the dependency layer (if exists) of the object (in memory)

def remove_dependency_layer(self):
        """
        Removes the dependency layer (if exists) of the object (in memory)
        """
        if self.dependency_layer is not None:
            this_node = self.dependency_layer.get_node()
            self.root.remove(this_node)
            self.dependency_layer = self.my_dependency_extractor = None

        if self.header is not None:
            self.header.remove_lp('deps')