remove useless 'if' from message templates.