Move library branch handling to split_draft / _map_revision_to_branch