[cogenda-web] - Refactor application setup logic.