move out ipv6 code