old_contents: 
  from .library import Library
  from .filters import Filter
  
  
  register = Library()
  
  
  @register.filter(name='title')
  class TitleFilter(Filter):
      def __rshift__(self, other):
          return str(other).title()
  
new_contents: 
  from .library import Library
  
  
  register = Library()
  
  
  @register.filter
  def title(val):
      return str(val).title()
  
subject: Convert to new style filter