[CORE] Factorize operation generation