TDI-30496: remove the duplicated code for reject line
https://jira.talendforge.org/browse/TDI-30496