Moved menu and related logic to 'main' package.