Undid the leaf node code templatization.