Refactor chat uml schemas