Breaking up a chunky method in the generator