Can we use `cond` and internal `define` here?