deposit: refactoring

* Adapts to the comments.

Signed-off-by: Georgios Kokosioulis <georgios.kokosioulis@cern.ch>