Refactors operation block