Add injectFunc().
Extract methods from injectFunc().