refactor GA code out of Worker/Framework