moved party repository to separate file
extracted class for party id form