Search-metodin refaktorointi