Run.hs: move sharable code to a new Utils.hs file