Refactored private_class_method handler.