Refactoring grunt tasks.