refactor(All modules):Refactor all functions to do one thing.