Implement make-extension-branches

Bug: 48837
Change-Id: Ia1a289c3aebcc958fd4d980705c351fa2abd6573