Move endpoint subclass finding to reflection util

The endpoint finding uses a utility method that can
be generalized into finding subclasses of a given list
of items, so instead of having this logic be in the worker
just move it to reflection instead.

Change-Id: Id79efd9514f7b2f7713a1426a7e6ed0861ecee70
Merge "Move endpoint subclass finding to reflection util"