Refactor PDF generation from application_controller into its own class