diff --git a/src/JMS/Serializer/Twig/SerializerExtension.php b/src/JMS/Serializer/Twig/SerializerExtension.php
index <HASH>..<HASH> 100644
--- a/src/JMS/Serializer/Twig/SerializerExtension.php
+++ b/src/JMS/Serializer/Twig/SerializerExtension.php
@@ -43,28 +43,18 @@ class SerializerExtension extends \Twig_Extension
     public function getFilters()
     {
         return array(
-            'serialize'      => new \Twig_Filter_Method($this, 'serialize'),
+            new \Twig_SimpleFilter('serialize', array($this, 'serialize')),
         );
     }
 
     public function getFunctions()
     {
         return array(
-            'serialization_context' => new \Twig_Function_Method($this, 'createContext'),
+            new \Twig_SimpleFunction('serialization_context', '\JMS\Serializer\SerializationContext::createContext'),
         );
     }
 
     /**
-     * Creates the serialization context
-     *
-     * @return SerializationContext
-     */
-    public function createContext()
-    {
-        return SerializationContext::create();
-    }
-
-    /**
      * @param object $object
      * @param string $type
      * @param SerializationContext $context
Switch the Twig integration to use non-deprecated APIs