Refactor int2ip.