Refactoring menu section initialization.