[#REFACTOR] Pk: extracting request xml creation logic in a separate module