Remove unused refences