Replace constant reference with its value.