Refactored walkthrough non-printable line removal to smaller methods