Separating out thing with different dependencies into different files would be one way, but it would still be difficult to do. You could possibly reuse the compat resolver to prevent certain things from loading, so you could verify that common variations still work.