[Bridge][Twig] Replace deprecated features