Refactor stages.list.js