Self-adjoint oscillator operator from a modified factorization