It'd be a lot nicer if we could factor this code and `EdgeDegreesService` into it's own class.