server: Refactor Box2D body creation