remvoe scope factory