Allow method defined by extras to be a private method.

Allow method defined by extras to be a private method.