Light refactoring of RedisOutputThread.run().