Utility: Optimize layout