Revise server codes to remove unused parts.