For functions that have quite a few arguments like this, I think it's helpful to use a config object with named keys, that way new eyes instantly know what each argument is, without having to jump to the function definition.