Refactoring messages responses and decoupling the WebServer route