Make the gateway dependencies configurable.