Remove dangling defs.