Here you can extract the `File.join(base, "#{name}.metadata")` to a local variable and reuse it below.