diff --git a/lib/stripe/application_fee.rb b/lib/stripe/application_fee.rb
index <HASH>..<HASH> 100644
--- a/lib/stripe/application_fee.rb
+++ b/lib/stripe/application_fee.rb
@@ -1,5 +1,6 @@
 module Stripe
   class ApplicationFee < APIResource
+    extend Gem::Deprecate
     extend Stripe::APIOperations::List
 
     def self.url
@@ -16,7 +17,6 @@ module Stripe
       # from the server
       self.refresh
     end
-    extend Gem::Deprecate
     deprecate :refund, "application_fee.refunds.create", 2016, 07
   end
 end
diff --git a/lib/stripe/charge.rb b/lib/stripe/charge.rb
index <HASH>..<HASH> 100644
--- a/lib/stripe/charge.rb
+++ b/lib/stripe/charge.rb
@@ -1,5 +1,6 @@
 module Stripe
   class Charge < APIResource
+    extend Gem::Deprecate
     extend Stripe::APIOperations::List
     extend Stripe::APIOperations::Create
     include Stripe::APIOperations::Update
@@ -12,7 +13,6 @@ module Stripe
       # from the server
       self.refresh
     end
-    extend Gem::Deprecate
     deprecate :refund, "charge.refunds.create", 2016, 07
 
     def capture(params={}, opts={})
Move `extend` to top of file