Factor out DetailFragment.