Factor GSL template into one template per generated file.