Add conditional when clauses for trusty/precise differences