What which code is for? The `options` object is there to bust dependency injection and make the code easy to unit test... the `getServices()` thing exists from @andrewhayward's original implementation, though I made it injectable as a dependency since it's also a thing that needs to be "plugged-in" to the endpoint.