Remove an unnecessary trace frame.