HOPKINS: Move some structures and functions to LinesManager