Added dependencies in page_fetcher and extracted method