refactor(utils): Cleaned up code in Grunt util