Refactored the branch predictor interface