metaclass: convert object method to class method