Type while refactoring Fragment