Remove unused local variable preview from core