Conversion from PDF to PDF/A-1b and handling of layers (OCGs)

I am using the PDFACompliance class to convert PDFs to PDF/A-1b and am running into an issue when the source PDF has layers, some of which are visible (ON) and some of which are non-visible (OFF). I understand that PDF/A-1b does not support layers and that layers in the source PDF must be removed as part of the conversion. As it stands, PDFACompliance simply removes the layers and retains all the content whether the layer was ON or OFF, which in the case of some PDFs results in a jumble of overlaid text from the layers. I am hoping that there is some way to control the behavior of the conversion so that it will only retain the content from the visible layers. Can this be accomplished and if so, how?

Thanks in advance!