There is a lot of duplicated code here. The only differences are the title and the action to make on mIntent after fulfilling it. Let's rewrite it.