Move cleanup into a Rake task