Extract method to Config#scanLine()