BibEdit: duplicate code removal
Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch> Reviewed-by: Samuele Kaplun <samuele.kaplun@cern.ch>