refactor: generalize SpectrumRestricts to the QuasispectrumRestricts, preserving API (#12643)
SpectrumRestricts
QuasispectrumRestricts