Revert "Make #inject() an object method"

This reverts commit d542d375643d6b9eed03c209c1ddbffe8ab93fbd.
inject() needs to be global