Refactor gulpfile: split tasks into subtasks