cleanup various domain variable initializations

Fixes package.license filtering and moves initializations closer to
where they're used in general.