Moved delete-still-existing-elements into the common conversion rules

This rule exists in both expert systems and is extremely useful. It may turn
out that this function is specific to an expert system but for now it's a
common function.