Move some reflection code to a Reflection utility class.