Modified to leverage 2.1.9 hooks

Change the construct to leverage the thesis_updates and
upgrader_process_complete hooks

Chris has mentioned this might change again in 2.2