Removed duplicated code to compute output filename for hazard writer tests.
Removed duplicated code to compute output filename for hazard writer tests.


Former-commit-id: ff523b5a755b8d6ed942d7adf2646f0147d89df8 [formerly ff523b5a755b8d6ed942d7adf2646f0147d89df8 [formerly c01f070da1408977b9d68a35039eeedf47ef5367]]
Former-commit-id: 629c1d51c8253d1aab346b6d48daf32752b648b8
Former-commit-id: 85be91802ef336a7c51cef4269e64d875882619b
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine