Countrywide (and others) did all three, before and after G-S repeal.
“The names may have changed, but the game stays the same.”
Lets be specific. Prior to the repeal of Glass-Steagall, banks were not permitted to underwrite and trade instruments such as mortgage-backed securities and collateralized debt obligations.