Remove some monkey patches and push more down to PDF::Core