BMTagger refactored