Cleaning up the source code here...
There were analyzers not used anymore, and all the associated tests.
Fix some compilation error in the advanced legend UI. Does probably not work