and pretty much any developer given the task would produce code identical to this.
That I doubt; it seems more like it's deliberately large and complex enough to be copyrightable, because otherwise it wouldn't be.