Refactoring  logic calc :add create enum for operator.