[DC/TB] [79888872] break out interpolate_env_vars method