Can I remove some code to save flash memory

Hi, I’m working with the ST lorawan implementation (i-cube-lrwan) which in practice is based on the Semtech software. We need only class A implementation. Do you know, can we remove some code easily, in order to save flash memory (2-4kB or more) and still pass the LCTT certification?

Thank in advance,