remove dead statics, and tool for such