This mehod doesn't create anything: just makes a decision to return `targetObject` as `handler` or not...
Looks like there is no reason to extract this method at all.