Add DefMap to map DefIds to definitions