Refactor provider_bootstrapper out of mainwindow