HOPKINS: Some refactoring in LinesManager