Refactor primitives makeBinaryOperator