Refactoring menu work into action helper