Merge "registration: Convert "config" into an object with metadata"