Localize io_prio functions in separate file