Convert callbacks for Twig filters to constructive-classes.