| Other operating income segregated by revenue streams |
The following presents the Company's other operating income, segregated by revenue streams that are in-scope and out-of-scope of ASC 606 for the periods presented:
| | | | | | | | | | | | | | | | | | | Year Ended December 31, 2024 | | | | | | | (Dollars in thousands) | In-scope | | Out-of-scope | | Total | | Other operating income: | | | | | | | Mortgage banking income | $ | 917 | | | $ | 2,471 | | | $ | 3,388 | | | Service charges on deposit accounts | 8,656 | | | — | | | 8,656 | | | Other service charges and fees | 20,128 | | | 2,425 | | | 22,553 | | | Income on fiduciary activities | 5,761 | | | — | | | 5,761 | | | Net (losses) gains on sales of investment securities | — | | | (9,934) | | | (9,934) | | | Income from bank-owned life insurance | — | | | 6,619 | | | 6,619 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other | — | | | 1,680 | | | 1,680 | | | Total other operating income | $ | 35,462 | | | $ | 3,261 | | | $ | 38,723 | |
| | | | | | | | | | | | | | | | | | | Year Ended December 31, 2023 | | | | | | | (Dollars in thousands) | In-scope | | Out-of-scope | | Total | | Other operating income: | | | | | | | Mortgage banking income | $ | 687 | | | $ | 1,905 | | | $ | 2,592 | | | Service charges on deposit accounts | 8,753 | | | — | | | 8,753 | | | Other service charges and fees | 18,605 | | | 1,926 | | | 20,531 | | | Income on fiduciary activities | 4,895 | | | — | | | 4,895 | | | Net (losses) gains on sales of investment securities | — | | | (2,074) | | | (2,074) | | | Income from bank-owned life insurance | — | | | 4,870 | | | 4,870 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other | — | | | 7,096 | | | 7,096 | | | Total other operating income | 32,940 | | | 13,723 | | | 46,663 | |
| | | | | | | | | | | | | | | | | | | Year Ended December 31, 2022 | | | | | | | (Dollars in thousands) | In-scope | | Out-of-scope | | Total | | Other operating income: | | | | | | | Mortgage banking income | $ | 1,060 | | | $ | 2,750 | | | $ | 3,810 | | | Service charges on deposit accounts | 8,197 | | | — | | | 8,197 | | | Other service charges and fees | 16,581 | | | 2,444 | | | 19,025 | | | Income on fiduciary activities | 4,565 | | | — | | | 4,565 | | | Net (losses) gains on sales of investment securities | — | | | 8,506 | | | 8,506 | | | Income from bank-owned life insurance | — | | | 1,865 | | | 1,865 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other | — | | | 1,951 | | | 1,951 | | | Total other operating income | $ | 30,403 | | | $ | 17,516 | | | $ | 47,919 | |
|