Refactor ip_addresses, dns_names and external_id to not be nested under attributes: {} when generating mock data.