diff --git a/module/VuFind/src/VuFind/I18n/Translator/TranslatorAwareTrait.php b/module/VuFind/src/VuFind/I18n/Translator/TranslatorAwareTrait.php
index 33c13cf6e2411dd0021d29f2523a10aa4f2c9ec8..146158320f05af2f1a4f05f8379db7b94542dd97 100644
--- a/module/VuFind/src/VuFind/I18n/Translator/TranslatorAwareTrait.php
+++ b/module/VuFind/src/VuFind/I18n/Translator/TranslatorAwareTrait.php
@@ -118,19 +118,4 @@ trait TranslatorAwareTrait
 
         return $msg;
     }
-
-    /**
-     * Sleep magic method -- the translator can't be serialized, so we need to
-     * exclude it from serialization.  Since we can't obtain a new one in the
-     * __wakeup() method, it needs to be re-injected from outside.
-     *
-     * @return array
-     */
-    public function __sleep()
-    {
-        $vars = get_object_vars($this);
-        unset($vars['translator']);
-        $vars = array_keys($vars);
-        return $vars;
-    }
 }
diff --git a/module/VuFind/src/VuFind/Search/Base/Options.php b/module/VuFind/src/VuFind/Search/Base/Options.php
index 45be6b2075603c9027484437594661202a7d72d5..5ff15a119c0640afc9063a281e7273767fcd5acf 100644
--- a/module/VuFind/src/VuFind/Search/Base/Options.php
+++ b/module/VuFind/src/VuFind/Search/Base/Options.php
@@ -709,4 +709,19 @@ abstract class Options implements TranslatorAwareInterface
         // No limit by default:
         return -1;
     }
+
+    /**
+     * Sleep magic method -- the translator can't be serialized, so we need to
+     * exclude it from serialization.  Since we can't obtain a new one in the
+     * __wakeup() method, it needs to be re-injected from outside.
+     *
+     * @return array
+     */
+    public function __sleep()
+    {
+        $vars = get_object_vars($this);
+        unset($vars['translator']);
+        $vars = array_keys($vars);
+        return $vars;
+    }
 }
\ No newline at end of file