Make functions and variables layout-specific