Decouple analyzer from compiler