Seems like the stuff inside the 'update_wiki_flag' should be in separate methods.