Transports are only for jobs - see environment fetching for another example but you can just move this helper into its own file/class in the deployment/ package.