make metadata storage pluggable