The layoffs were announced along with plans to exit the mortgage origination business and come as the bank is exploring strategic alternatives for its credit card business.