Clean out unused diagnostics.