Refactor gyp files