Restructure config to support multiple instances of gateway with different configuration