Take better advantage of active record relations


Cherry Pick
https://github.com/spree-contrib/spree_related_products/commit/c7565776bbae38d8c4498680b4c46071e21cfa73