move ternary expression definition to flint_classes