Extract results computation into a method.