TMDS_CHANNEL_ENCODER: Refactoring