Refactored some of the reflective method juggling into new utility methods in ReflectionUtils.