Move the "open an external site" code to FunctionalHelpers.