Reorganize io utils.