Make resamplers more modular.