Code refactoring in CurrentLocationFragment.