Code cleanup and factorization
mirabel_to_koha.pl --simulation