CSPCloud-server refactiring.