Refactors nio_instance tool

Signed-off-by: Oren Leiman <oleiman@neutral.io>