     end
   end
 
+  defp otp_app do
+    Mix.Project.config[:app] |> to_string
+  end
 
 end

    |> case do
      nil -> :ok
      {path, _} ->
        path = Path.join(["web", "templates", "coherence", "#{path}"])
        confirm config, path, fn -> rm_dir!(path) end
    end
    option

  end

  defp remove!(%{templates: true} = config, :templates) do
    path = Path.join ["lib", otp_app(), "web/templates/coherence"]
    confirm config, path, fn -> rm_dir!(path) end
  end
  defp remove!(%{views: true} = config, :views) do
    path = Path.join ["lib", otp_app(), "web/views/coherence"]
    confirm config, path, fn -> rm_dir!(path) end
  end
  defp remove!(%{controllers: true} = config, :controllers) do
    path = Path.join ["lib", otp_app(), "web/controllers/coherence"]
    confirm config, path, fn -> rm_dir!(path) end
  end
  defp remove!(%{models: true} = config, :models) do
    path = Path.join ["lib", otp_app(), "web/models/coherence"]
    confirm config, path, fn -> rm_dir!(path) end
  end
  defp remove!(%{web: true} = config, :web) do
    path = Path.join ["lib", otp_app(), "web/coherence_web.ex"]
    confirm config, path, fn -> rm!(path) end
  end
  defp remove!(%{emails: true} = config, :emails) do
    path = Path.join ["lib", otp_app(), "web/emails/coherence"]
    confirm config, path, fn -> rm_dir!(path) end
  end
  defp remove!(%{migrations: true} = config, :migrations) do
