Allow injecting plain functions and generate injecting wrappers