Using the isolated directory helper would remove the need for the `rm_rf` calls.