Refactor the folder structure for cloud server.