Spectral method (better)
The song is cut into small overlapping slices and each slice is split into frequencies. For every frequency the tool checks whether it is “centered” (the same in both channels) or panned. Centered parts are turned down, panned parts are left alone, so the stereo image of the band stays intact.