server: Simplify code with Lo-Dash