Moved utility code for getting the current injection point to a utility
class