[Refactor] Factorized level.js