diff --git a/lib/aptly/publish.rb b/lib/aptly/publish.rb
index <HASH>..<HASH> 100644
--- a/lib/aptly/publish.rb
+++ b/lib/aptly/publish.rb
@@ -1,5 +1,3 @@
-require 'ostruct'
-
 require_relative 'representation'
 
 module Aptly
diff --git a/lib/aptly/representation.rb b/lib/aptly/representation.rb
index <HASH>..<HASH> 100644
--- a/lib/aptly/representation.rb
+++ b/lib/aptly/representation.rb
@@ -1,3 +1,5 @@
+require 'ostruct'
+
 module Aptly
   # Base representation class to coerce transactional types into useful
   # objects.
require ostruct in representation where it is used