Refactor bisect operations into CAppUtils