From Metagrammars to Factorized TAG/TIG Parsers