Replacing Reflection helper with public view generation API