I didn't introduce this code (although is looks like) and you're totally right about `require('extend')`.