Migrate hmi-debug into util