grunt tasks refactor