Extract destroy and ngModel setup
Extract mutation observers
Extract rebind logic
Fix missing parameter