Improve interface of GetPublicIps(), cleanup.