[CLEANUP] - Refactored code to facilitate creation of unit tests
- Set security helper as PluginService instance dependency instead of global static variable access
- Set document builder as PluginService instance dependency instead of global static variable access
- Refactored access to metadata plugins list to a separate service