jats_package: duplicate code removal

Signed-off-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>