DRY up usage of YAML mime-type.