Refactoring to extract web driver declaration and initialization.