[BF/IM] Fix reference to old Doctrine1 code

Also, reference the infrastructure correctly.
[IM] Remove hardcoded reference to INEX
[IM] Remove static reference and replace with config variable