Some general-purpose utilities for OpenTrans.