standardizeHost = function (host, accountName, scheme, dns){
    var storageHost;
    if (host) {
      storageHost = {};
      storageHost.primaryHost = _.isString(host) ? host : host.primaryHost;
      storageHost.secondaryHost = _.isString(host) ? undefined : host.secondaryHost;
    }

    if (scheme && accountName && dns) {
      storageHost = storageHost ? storageHost : {};
      storageHost.primaryHost = storageHost.primaryHost ? storageHost.primaryHost : url.format({ protocol: scheme, hostname: accountName + '.' + dns});
      storageHost.secondaryHost = storageHost.secondaryHost ? storageHost.secondaryHost : url.format({ protocol: scheme, hostname: accountName + '-secondary.' + dns});
    }

    return storageHost;
  }
Creates StorageServiceSettings object given endpoints uri.

@ignore
@param {array}  settings         The service settings.
@param {string} blobEndpointUri  The blob endpoint uri.
@param {string} queueEndpointUri The queue endpoint uri.
@param {string} tableEndpointUri The table endpoint uri.
@param {string} fileEndpointUri  The file endpoint uri.
@return {StorageServiceSettings}