Merge composition of locals which target the same variable