Add helper method to public interface.

Makes it easier to subclass.