Refactor itunes_launch code.