Clean up unnecessary public methods in Rule and AstVisitor classes