Split VAR_TRAIT_FORMAT into PRINT and WRITE variants