Refactoring some methods of Activities/Fragments classes.