Split IO init out into three chunks and reorder appropriately.