Moving common functionality regarding webpage scrapping to parent object