move common methods of lending and reservation model to module