Reduce code duplication in OperationManager.