Make metadata storage pluggable