Extract duplicate code from finds