Don't call utils.traverse in transform

Accidental change we missed in review of #495.