Move error handling in Reflection to ReflectionHelpers