Common functionality shared across grunt-contrib tasks.