WordPress: remove classic-themes.min.css

After upgrading to WordPress 6.1, a core stylesheet called classic-theme-styles with url wp-includes/css/classic-themes.min.css has been added. I haven't actually investigated why, but to remove it we need the id of this stylesheet and so it can be removed with a wp_dequeue_style() function:

add_action( 'wp_enqueue_scripts', 'deregister_styles', 10);
function deregister_styles() {