So this is an even more complicated use of promises. (I really wish our settings api allowed us to query multiple settings at the same time.)  I think I get what is going on, but it might be worth adding a comment on this line saying "this is the value that the returned promise will resolve to" or something.