Extract adding menu items into a method
Revert "Turn off Swift optimization for release builds"

Swift optimizations are working in Xcode6-Beta4.

This reverts commit 0217b75ed0beacc2f7356b7a2cd32c3100795d7a.