Remove unwanted duplicate template generation.