private static boolean needsConstantRemoval(Expression<?> expr) {
        expr = ExpressionUtils.extract(expr);
        return expr instanceof Constant || expr.equals(Expressions.TRUE) || expr.equals(Expressions.FALSE) ||
              (expr instanceof Operation && ((Operation<?>) expr).getOperator() == Ops.ALIAS
                  && needsConstantRemoval(((Operation<?>) expr).getArg(0)));
    }
{@code Conversions} provides module specific projection conversion functionality

@author tiwe
querydsl-jpa/src/main/java/com/querydsl/jpa/Conversions.java