clean code, chatMessage repository