diff --git a/lib/gretel/trail/tasks.rb b/lib/gretel/trail/tasks.rb
index <HASH>..<HASH> 100644
--- a/lib/gretel/trail/tasks.rb
+++ b/lib/gretel/trail/tasks.rb
@@ -1,21 +1,5 @@
 require "rake"
 
-module Gretel
-  module Trail
-    module Tasks
-      extend Rake::DSL
-
-      def self.install
-        namespace :gretel do
-          namespace :trails do
-            task :delete_expired => :environment do
-              Gretel::Trail.delete_expired
-            end
-          end
-        end
-      end
-    end
-  end
-end
-
-Gretel::Trail::Tasks.install
\ No newline at end of file
+Rake::Task.define_task("gretel:trails:delete_expired" => :environment) do
+  Gretel::Trail.delete_expired
+end
\ No newline at end of file
Simpler way of defining rake tasks