Resolve the response class outside of #define_method