Refactor Recent Menu Behavior

Update behaviors used to implement right click menu for a recent workspace to
reuse existing behaviors. Refactor the sidebar-menu behavior to utilize the
same on-menu behavior.