A consistency-guaranteed approach for Internet of Things software refactoring. (January 2020)