This function was moved to here due to the BrowserContext re-factoring

When re-factoring BrowserContext.php the function has been moved.
https://github.com/ezsystems/ezpublish-community/pull/90