It can be achieved via annotated bindings
or better private modules
. I need more information from you to help you further, check my comment under your question.
Look at my post how to encapsulate modules. https://stackoverflow.com/a/20073461/2616445