I ask because I noticed that a few of the notes found in the Dmaj7 chord are played in your "money" vamp at the end specifically on the E minor dorian chord , and after improving over it myself using a lot of dmaj7 I found that it has a similar sort of sound.
when playing over that i'd probably slip into things that feel like A dorian, or D mixo. with a lot of room to stretch and go wild, because the whole thing sort of exists in a sort of limbo state, as its supposed to, given the song context