Remove one reference and add another.