[Demos] Refactoring: Keep platform-specific code separate from each demo's content