Two Duplication Refactorings in Elixir
Here is a step by step process on how to find a eliminate duplication in Elixir code. This example is taken from a real world pull request from Elixir core. http://dirtyinformation.com/blog/2017/01/18/two_duplication_refactorings_in_elixir