Refactored NIO-related types