Remove dependency on Foundation classes.