deduplicated try/catch blocks: they were significantly slowing down compilation