make metadata storage pluggable

why was this removed?