I keep seeing this pattern pop up, would it make sense to pull it out into a helper method?

    string GetSmtpSetting(string settingName) {
        if (SMTPPortalEnabled) {
            return PortalController.GetPortalSetting(settingName, PortalSettings.Current.PortalId, Null.NullString);
        }

        return HostController.Instance.GetString(settingName);
    }