Move from documents + nodes to resources.