Deposit insurance reform: a functional approach