Ill-timed deregulation is weakening bank resilience