gh-2167 give discriminators access to their own instance or class methods