Delete path, convert to group

If all paths are deleted from an object, that object should automatically be converted into a group object with the appropriate icon. Currently the icon and object type remains a shape object if all paths from that object are deleted. If not automatic, there should be a way to convert a shape object to a group object if there are no paths in it’s root.