Rewrite of artifact in elixir