Wrap the configuration menu insertion in function

This one does not have any local variables to seal off, but makes it
easy to disable.