Refactor the node and tag logic to seperate files