Combined duplicate code for prey and pred into generic results processing.