JS is all about tiny functions.  Large functions do not optimize well in engines.  We enforce a very low function size on all the new modules wb.core, db, sync and sdk through static analysis.  Usually, our comments hopefully aren't a smell.