move Repo stuff into modules and add MerchantRepository#dates_by_revenue