Refactoring of many delete methods. (Cleanup in the Line class.)