Remove unnecesary instantiations.