Refactoring of setBackTiedVoices function