Move some code from pragha-menubar.c to "betters" places