Minor refactoring.
Minor refactoring.

reyno-uk/ApplicationInsights-JS,reyno-uk/ApplicationInsights-JS,alancameronwills/ApplicationInsights-JS,reyno-uk/ApplicationInsights-JS,alancameronwills/ApplicationInsights-JS,reyno-uk/ApplicationInsights-JS,alancameronwills/ApplicationInsights-JS,alancameronwills/ApplicationInsights-JS