HOPKINS: Regroup some IF statements in linesManager