How to use dependency injection pattern in Elixir?

It makes perfect sense to me, however I now wonder if I should keep using behaviours for this purpose. This looks nicer and more reliable. What’s the rule of thumb here @michalmuskala ?