SpecialExpandTemplates: Use Config instead of globals

Change-Id: I84b1008a11aa12708231b6f460715a5cdd4f4e01
Merge "SpecialExpandTemplates: Use Config instead of globals"