Code refactoring (DealPhase).