Merge "Extract the mapping of flags to APIs." into main