Remove UINavigation controller dependency.