Move textLine module to common lib directory