Avoids a mutable object in a function parameter.