Refactored method in fragment to access data in activity