Extract filterBranches.