envoy: refactor exec_wrapper