[WIP] Generalize deflation over backends and iterative methods