Remove reference to Arrays.copyOf