The diagram created with mermaid, is not up to date and needs to be simplified and optimized according to the current implementation.