QA-166 - As QA i want to refactor BrowserContext.php

### QA-166 - As QA i want to refactor BrowserContext.php

https://jira.ez.no/browse/QA-166