[IMPR] Split initializer and put getting whitelist to its own method
[IMPR] Split initializer and put getting whitelist to its own method

Decrease code complexity of initializer

Change-Id: I7a4245d061a281524e5ba9b5ac619b38566c9e28

wikimedia/pywikibot-core,wikimedia/pywikibot-core