Disentangled Modeling of Domain and Relevance for Adaptable Dense Retrieval