cleanup ugly code in lib/ecto/entity.ex