Refactoring concerning the file 'app/index.js'