Moves intent creation to seperate methods.