Cleanup can't be automatic. Sometimes "dead code" is, for instance, actually an example of usage or something similar...