Removes redundant app refrences.