How to use the Factory design pattern to create browser instances: local and remote approach