Remove duplicated code, unneeded logic, simplify and document dynamic block updates
Make STANDARD_CHAT_PREFIX public