Refactoring Task creation to use a single object/hash