Flatten app structure