Cleanup LineView code.