Merge "registration: Make it easier for other code to get extension metadata"