Extract a method rather than creating a duplicate lambda per call.