“Crystal fields” for magnetic ions in metals from itinerant electrons