[PATCH v2 04/15] conf: Move iothread formatter into a separate function