Unwanted public method is made private