refactor: break out Node and Relationship into separate services