Remove hostnames array generation