MSINM-52: Clean up PDF-generation and moved service to core project