Change WebViewFragment to use factory pattern.