Change BranchPath to enum.