Replace checkParentExistsForThisId calls with getParentFor