Add YPdfDataCollector to DRY up code and improve CodeClimate GPA