Remove duplicate function in Gruntfile