Addressed the points raised in https://github.com/gem/oq-commonlib/pull/50