Refactor deploy task, create create task