Given these two sentences:
- The mixin is a method of adding to the properties of a Javascript class.
- The mixin is a method of removing from the properties of a Javascript class.
I'd like to combine them into a single sentence, but the verbs have different prepositions. So the use of two prepositions in the combined sentence feels clumsy:
- The mixin is a method of adding to or removing from the properties of a Javascript class.
Is there a less clumsy way to phrase this? Possibly using a single preposition? I'm actually interested in the general case or a rule, not just this specific case with which I am dealing right now.