Revert "Made some methods in AST static"

This reverts commit 1a64e5658f35e7bccd31678acfd84b4e3dd54858.