Switched from enum approach to getOperator to a factory method