This should probably be added to activationfn themselves instead of builder.