Extracted the run-once logic out of PicoFactory