Remove dangling injections.