Frank's example requires changing a line of code to switch between producing the slides and the handouts. Instead, you could keep the content of the presentation in one file and have other options specific to slides and handouts in separate files. For Frank's example, put everything starting with the line \usetheme{Warsaw} into content.tex.
Thanks for this tip goes to http://happymutant.com/latex/misce/beamer.php.