Move procedure `collect' from livescribe.rkt to utils.rkt.