Extract buys product id collection to own method