#405511 choose-mirror: Consolidate templates to save memory