Removed some code duplication from ucerf_classical
Removed some code duplication from ucerf_classical


Former-commit-id: cf43f36a0cc7d455459967f62a9d280f12af35b2 [formerly cf43f36a0cc7d455459967f62a9d280f12af35b2 [formerly a34fbb9b398da63d61669640b813eaf188bbdd50]]
Former-commit-id: f4364b8410e5f4349623c13edbebd68832625cce
Former-commit-id: 860aef659fc58666a65e035ab06a1fe7cce201cd
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine