Move procedural code from cookie_consent_ui_page_attachments to a service, maybe there is a D11 way to remove the whole hook.
Active
Code