Allow changing context of and redefining public methods.