Simplify DitaWriter initialisation and remove class variables