Refactoring browser factory