remove branch dependencies where not necessary