moved the logic for operator inference into the ElasticOperator enum declaration