memodump_menu_def is now a method

config variable memodump_menu_def is no longer a variable and is now
defined as a method.
class variables are rather limited at using dynamic values, so we move
on and change the variable to a method instead.