Make custom_sources_list into a class paramter

and thus remove the last global variable.