refactor getNewBundleInfoLines method removing multiple null checks