The FBI’s been doing dirty work since it started. It’s as politicized as it gets. They need to fire most of them, maybe shift the absolutely critical remaining tasks that they can to the US Marshalls. They are a disgrace.
It has certainly morphed into a mess, but, again, it rotted from the top, and that can be changed.
"Critical tasks" is hard to define.