groonga-httpd-reastart: remove duplicated code