Remove parameters
Move main menu related code to own file
Remove parameters
Extract function
Rename variable