Extract find() function into separate utilities file.