The bank says 840 staff will be affected by the decision although it will try to offer them roles elsewhere.