Remove seperate setup function from BackgroundWorker.