Remove duplicate code from Customizer/Gruntfile by sharing it