Small refactoring of get_sources [skip hazardlib]
Small refactoring of get_sources [skip hazardlib]


Former-commit-id: 19963eb2daeeaea41ec0f18f74f7ddee57703e9f
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine