Actually it didn't do what I thought, so I have moved the code as per @aledsage suggestion, which now _does_ give the `ConfigKey` based setting of endpoint precedence.