Adding support for class methods as scopes