How to use Strapi Plugins inside Custom Controllers

Hey guys,

I am relatively new to Strapi. I am currently using the Strapi Plugin Transformer to remove data & attributes from api output. In addition to this I have a custom controller where upon calling the entity service api, I get all the data and attributes, and I was wondering if there’s a way to remove those using the plugin inside the custom controller? Is there a way to do that?