A prisoner who is removed or returned under sections 253.20 to 253.26 shall be held in the place to which the prisoner is so removed or returned in accordance with the terms of the prisoner’s original sentence unless sooner discharged and the period of removal shall be counted as a part of the term of the confinement.