refactor: extract zoom into functions
refactor: extract hierarchy methods
refactor: use a generator to look up node names
refactor: use a lookup function to map names to nodes