Refactoring search fragments