Refactor gulp task even further to allow exposing of methods for others to use