Rewrite BrowserController.php to avoid direct usage of global services