Filter public methods and allow inheritance.