Refactor config:export to work with Consul.