Remove unused traces