Split datasources into index and schemes
Add compile_defs.py