Refactored renaming places to use getBranch.