Make gulpfile have less code duplication.