Refactoring of AuctionRepository and BidRepository Methode