[IMP] translate: small code cleanups