XR/AR/VR Interaction / XR Adaptive Interfaces and Toolkits

How can modular design improve generality and extensibility of adaptive UI toolkits?