Move Deposit Receipt creation to its own function.
And move _make_iri's code inside this function, it was almost a single statement.