Remove redundant refID arrays