Use new-style hash syntax, and new-style has_metadata invocation.