Simplify getFirstParent routine
EnumerableExtensions enumerator classes are private