Remove unused diagnostic and diagnostic group.