Move preparing the data for 'in' operator to the proper method