     status200? ts, method, path, params, body
   end
 
-  defdelegate exists_template?(ts, args \\ %{}), to: __MODULE__, as: :exists_template
+  def exists_template?(ts, args \\ %{}) do
+    exists_template ts, args
+  end
 
   def upgrade(ts, args \\ %{}) do
     method = "POST"

    status200? ts, method, path, params, body
  end

  defdelegate exists?(ts, args \\ %{}), to: __MODULE__, as: :exists

  def create(ts, %{index: index, body: body} = args) when is_map(body) do
    method = "PUT"

    status200? ts, method, path, params, body
  end

  def exists_alias?(ts, args \\ %{}) do
    exists_alias ts, args
  end

  def refresh(ts, args \\ %{}) do
    method = "POST"
