Function removePrivateAddressesMapper