Clear up some leftovers of old I/O implementation.