This `then` function would be better left to the returned promise. Instead of `Level.raw(name, path, type, fn)`, `Level.raw(name, path, type).then(fn)` would be better.