Generalizing interfaces to reflector generation and application