Factorizing geometry parsing