It seems that we need to find a unique set of two arrays in a couple of places, it might be worth extracting to a separate method to avoid code duplication.