make metadata storage pluggable

final?