Flattened hierarchy of mainentry

This improves performances and allow us to get rid of the ```NestedWeights``` warning.
The main list now scrolls slightly faster.