Simplify Distyll class to store less state and remove unnecessary recursion.