Moved navigation logic from twig extension to dedicated registry, accessible through the service container