[CoreBundle] Replace controller rendering with Twig extension