@ankit-maverick a new file is probably best. The only contents needed would be a wrapper for this function, named as @stefanv recommended, with a docstring specific to that mode, and with `mode='sum'` hardcoded. 

@ahojnnes would you prefer integrating into existing functions with checks for integer `factors`, or making a second function? I'm unsure integration can be easily and intuitively accomplished.