As I said, it's too much (untested) logic to be in the rake task in my opinion.

You should move this code back in the `destroy_garbage` method and add some tests.