Modularize a bit.
Encapuslate serverstate mutation into serverstate impl.