What about a method on summerShards: `summerIdFor(k: K) => Int` and put that code in there? That encapsulation is nice since the mod and size are kept as a detail there.