rewrite $inject, make inject deprecated