Web driver factory refactoring