Removing all reference control