Fix access specifiers with private_class_methods instead of removing directly