Allow internal references to be removed Closes #19376 See merge request gitlab-org/gitlab-ce!23189
options