Most of the time key signatures were cancelled whenever the new key signature had fewer sharps or flats than the old key signature, in modern popular music, this is only done when C major or A minor replace another key.