tools/smaz: genericize Process