Extract and decouple node hierarchy management from navigation service