bitbucket should accept metadata interface to support nullmetadata