No more copy-pasting of pipe menus! + Refactoring