Move services menu handling out into a separate function
Created attachment 263753 [details] Patch
Committed r191412: <http://trac.webkit.org/changeset/191412>