A first stab at refactoring those that are gulp plugins and those that are global functions