Refactor libBFD usage.