Move search controller methods to helper