Remove use of getNodeAffiliations()