Consolidate relevant code into 'inject' module.