Reduce duplication when testing panel rows