Make class methods depend on their target

Method defined as Baz.bar() inside of a Foo class won't be considered as a method of Foo