Extract runner initialization to main from trigger.