refactor: reduce complexity in metaphone class 2