Adjust cup-related templates.