Enable passing hash function to method decorator.