Minor point, but I think it may be better to move these inside a `CompletionContext` companion object.