If cloudflare is providing services to illegal websites, they very much are in full control of the situation. They knowingly choose to keep hosting that content, and have legal customers exposed to that risk.
You may like that the platform is open by default to everybody, but that's the obvious consequence.
Does cloudflare refuse a court order to take down a site? I don't think so.