Move configuration file parsing to a separate helper function.
Move configuration file parsing to a separate helper function.


Former-commit-id: f638a785f39af1ed3956a19c819a6d51b2304600 [formerly f638a785f39af1ed3956a19c819a6d51b2304600 [formerly 451518ea3efa9b6c69b5a34027c5a76bc5a91ac5]]
Former-commit-id: d6d11d2ad97da3bab2f3c3e53864590181ef1b42
Former-commit-id: cb7457f2377b66d3de26c647dfbcab9d2861f774
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine