Refactoring the analysis framework so that it doesn't do so many ugly
backflips to support the legacy queryll2 code analysis stuff.