Restructure app into front- sand back-ends