engine:
engine:

Made `get_or_create_input` a bit more dry (rearranged some duplicated
code).


Former-commit-id: 63ba766627c57c791e0327802197db06a16b1734
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine