Remove references to things that shouldn't've been there in the first place.