It makes sense to write repetitive code in only one place, then include in other blocks on export only. Doesn't fix the problem of exporting code samples to a single file (end up with multiple var declarations); still, it's a start.