Refactoring the separate factory classes into a PartyFactory class